import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import VueAMap from 'vue-amap'
import 'vant/lib/index.css'
import './assets/icon/iconfont'
// 导入axios
import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:8082'
Vue.prototype.$axios = axios
Vue.config.productionTip = false
// 移动端适配
require('lib-flexible/flexible.js')
Vue.use(Vant)
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: '8063cbcc8567945ba390fefad4864baa',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geocoder', 'AMap.Geolocation', 'AMap.DragRoute', 'AMap.Driving', 'AMap.Circle', 'AMap.Polyline', 'AMap.Walking', 'AMap.Geolocation'], // 插件
  v: '1.4.4', // 版本号，默认高德sdk版本为1.4.4，可自行修改
  uiVersion: '1.0.11' // 版本号
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
